#include "beep_device.h"
#include "driver_beep.h"
#include <string.h>

static int BeepInit(struct BeepDevice *pDev)
{
    BEEP_GPIO_Init();
    return PDSUCCESS;
}


static int BeepCtrl(struct BeepDevice *pDev, int status)
{
    return BeepSetStatus(pDev, status);

}


static beepDevice BeepDevice = {
	.name = "BEEP",
	.Init = BeepInit,
	.Ctrl = BeepCtrl
};


pBeepDevice GetBeepDevice(char *name)
{
    if(strcmp(name, "BEEP") == 0)
    {
        return &BeepDevice;
    }
    return NULL;
}

